// Copyright (c) 2009 Hypirinha contributers
// This program is made available under the terms of the MIT License.
package org.hypirinha.html.output.features;

import java.io.PrintWriter;

public enum HtmlDoctype implements Doctype {
    xhtml1_transitional("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" +
            "       \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");

    private String dtdDeclaration;

    HtmlDoctype(String dtdDeclaration) {
        this.dtdDeclaration = dtdDeclaration;
    }

    public void print(PrintWriter printWriter) {
        printWriter.println(dtdDeclaration);
    }
}
